<style>
.spin_content {
     position: relative;
    display: inline-block;
    width: 40px;
    height: 40px;
    overflow: hidden;
}
.spin_circle {
    position: absolute;
    left: 50%;
    top: 50%;
    margin: -18px;
    display: inline-block;
    text-indent: -9999em;
    border-top: 4px solid #ddd;;
    border-right: 4px solid rgba(91,163,229,.5);;
    border-bottom: 4px solid rgba(91,163,229,.7);
    border-left: 4px solid rgba(91,163,229,1);
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-animation: load_animation 1.1s infinite linear;
    animation: load_animation 1.1s infinite linear;
}
.spin_circle,
.spin_circle:after {
  border-radius: 50%;
  width: 30px;
  height: 30px;
}
@-webkit-keyframes load_animation {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes load_animation {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}


</style>
<template>
  <div class="spin_content">
    <div class="spin_circle" :style="{ 'border-left': '.2rem solid ' + color }">Loading...</div>
  </div>
</template>
<script>
export default {
    props: {
        color: {
            type: String,
            default () {
                return '.2rem solid #2db7f5'
            }
        }
    }
}
</script>
